/* This template is an example modelation of the first submission step from the depricated DSPACE submission module in RForms.
    This is only ONE possible way of doing it (with auxilliary), there are inf more possibilities... Also see FOM.js for more
    worked out form examples. */

testdata = {};


testdata.docType = {
        "label":{"en":"Describe1"},
        "description":{"en":"First step of the describing an item"},
        "root":{
                "type":"group",
                "id":"describe1",
                "label":{"en":"Describe"},
                "constraints":{"http://www.w3.org/TR/rdf-schema/type":"http://xmlns.com/foaf/0.1/Document"},
                "nodetype":"RESOURCE",
                "content":[
                           {"id":"doctype"},
                           {"id":"type"},
                           {"id":"creators"},
                           {"id":"titleinfo"},
                           {"id":"alttitles"},
                           {"id":"journaltitle"},
                           {"id":"issn"},
                           {"id":"vol"},
                           {"id":"issue"},
                           {"id":"startp"},
                           {"id":"endp"}


                ]
        },
        "auxilliary":[{
                        "id":"doctype",
                        "type":"choice",
                        "label":{"en":"Select type of document"},
                        "description":{"en":"The document's type"},
                        "nodetype":"RESOURCE",
                        "constraints": {"http://www.w3.org/2004/02/skos/core#inScheme":"http://example.com/bookSubjects"},
                        "ontologyUrl": "http://example.com/bookOntology", // voor als we ontologies gaan gebruiken om choices te vullen!
                        "property":"http://purl.org/dc/terms/subject",
                        "cardinality": {"min": 1, "max": 1},
                        "parentProperty": "http://www.w3.org/2004/02/skos/core#narrower",
                        "choices": [{
                                "value": "ch1",
                                "label": {"en":"Journal Contribution"},
                        },{
                                "value": "ch2",
                                "label": {"en":"Preprint"},
                        },{
                                "value": "ch3",
                                "label": {"en":"Book"}
                        },{
                                "value": "ch4",
                                "label": {"en":"Book Section"}
                        },{
                                "value": "ch5",
                                "label": {"en":"Proceedings Paper"}
                        },{
                                "value": "ch6",
                                "label": {"en":"Conference Material"}
                        },{
                                "value": "ch7",
                                "label": {"en":"Research Report"}
                        },{
                                "value": "ch8",
                                "label": {"en":"Theses and Dissertations"}
                        },{
                                "value": "ch9",
                                "label": {"en":"Working Paper"}
                        },{
                                "value": "ch10",
                                "label": {"en":"Map"}
                        },{
                                "value": "ch11",
                                "label": {"en":"Other"}
                        }]
                      },
                      {
                        "id":"type",
                        "type":"choice",
                        "label":{"en":"Type"},
                        "description":{"en":"The document's type"},
                        "nodetype":"RESOURCE",
                        "constraints": {"http://www.w3.org/2004/02/skos/core#inScheme":"http://example.com/bookSubjects"},
                        "ontologyUrl": "http://example.com/bookOntology", // voor als we ontologies gaan gebruiken om choices te vullen!
                        "property":"http://purl.org/dc/terms/subject",
                        "cardinality": {"min": 1, "max": 1},
                        "parentProperty": "http://www.w3.org/2004/02/skos/core#narrower",
                        "choices": [{
                                "value": "ch1",
                                "label": {"en":"Editorial material"},
                        },{
                                "value": "ch2",
                                "label": {"en":"Article"},
                        },{
                                "value": "ch3",
                                "label": {"en":"Review"}
                        },{
                                "value": "ch4",
                                "label": {"en":"Book Review"}
                        },{
                                "value": "ch5",
                                "label": {"en":"Meeting abstract"}
                        }]
                      },
                      {
                        "id": "creators",
                        "type": "group", 
                        "nodetype": "RESOURCE", 
                        "label": {
                            "en": "Creator"
                        }, 
                        "property": "http://purl.org/dc/terms/creator", 
                        "cardinality": {
                            "min": 0, 
                            "pref": 1
                        }, 
                        "constraints": {
                            "http://www.w3.org/TR/rdf-schema/type": "http://xmlns.com/foaf/0.1/Person"
                        }, 
                        "content": [
                        {
                                "type":"choice",
                                "label":{"en":"Type"},
                                "description":{"en":"The document's type"},
                                "nodetype":"RESOURCE",
                                "constraints": {"http://www.w3.org/2004/02/skos/core#inScheme":"http://example.com/bookSubjects"},
                                "ontologyUrl": "http://example.com/bookOntology", // voor als we ontologies gaan gebruiken om choices te vullen!
                                "property":"http://purl.org/dc/terms/subject",
                                "cardinality": {"min": 1, "pref":1, "max": 1},
                                "parentProperty": "http://www.w3.org/2004/02/skos/core#narrower",
                                "choices": [{
                                        "value": "ch1",
                                        "label": {"en":"Personal Author"},
                                },{
                                        "value": "ch2",
                                        "label": {"en":"Editor"},
                                },{
                                        "value": "ch3",
                                        "label": {"en":"Corporate Author"}
                                }]
                              }, 
                            {
                                "type": "text", 
                                "nodetype": "ONLY_LITERAL", 
                                "property": "http://xmlns.com/foaf/0.1/surname", 
                                "cardinality": {
                                    "min": 1
                                }, 
                                "label": {
                                    "en": "Surname"
                                }
                            }
                        ], 
                        "cls": [
                            "rformsTable"
                        ]
            
                      },
                      {
                        "id": "titleinfo",
                        "type": "text", 
                        "nodetype": "LANGUAGE_LITERAL", 
                        "property": "http://purl.org/dc/terms/title", 
                        "cardinality": {
                            "min": 1, 
                            "pref": 1, 
                            "max": 1
                        }, 
                        "label": {
                            "en": "Title"
                        }, 
                        "description": {
                            "en": "The title"
                        }
                      },
                      {
                        "id": "alttitles",
                        "type": "text", 
                        "nodetype": "LANGUAGE_LITERAL", 
                        "property": "http://purl.org/dc/terms/title", 
                        "label": {
                            "en": "Alternative Titles"
                        }, 
                        "description": {
                            "en": "Alternative titles"
                        }                     
                      },
                      {
                        "id": "journaltitle",
                        "type": "text", 
                        "nodetype": "LANGUAGE_LITERAL", 
                        "property": "http://purl.org/dc/terms/title", 
                        "cardinality": {
                            "min": 1, 
                            "pref": 1, 
                            "max": 1
                        }, 
                        "label": {
                            "en": "Journal Title"
                        }, 
                      },
                      {
                        "id": "issn",
                        "type": "text", 
                        "property": "http://purl.org/dc/terms/title", 
                        "cardinality": {
                            "min": 1, 
                            "pref": 1, 
                            "max": 1
                        }, 
                        "label": {
                            "en": "ISSN"
                        }, 
                      },
                      {
                        "id": "vol",
                        "type": "text", 
                        "property": "http://purl.org/dc/terms/title", 
                        "cardinality": {
                            "min": 1, 
                            "pref": 1, 
                            "max": 1
                        }, 
                        "label": {
                            "en": "Volume"
                        }, 
                      },
                      {
                        "id": "issue",
                        "type": "text", 
                        "property": "http://purl.org/dc/terms/title", 
                        "cardinality": {
                            "min": 1, 
                            "pref": 1, 
                            "max": 1
                        }, 
                        "label": {
                            "en": "Issue"
                        }, 
                      },
                      {
                        "id": "startp",
                        "type": "text", 
                        "property": "http://purl.org/dc/terms/title", 
                        "cardinality": {
                            "min": 1, 
                            "pref": 1, 
                            "max": 1
                        }, 
                        "label": {
                            "en": "Start Page"
                        }, 

                      },
                      {
                        "id": "endp",
                        "type": "text", 
                        "property": "http://purl.org/dc/terms/title", 
                        "cardinality": {
                            "min": 1, 
                            "pref": 1, 
                            "max": 1
                        }, 
                        "label": {
                            "en": "End Page"
                        }, 

                      }],
        "cachedChoices": {}
        
}